
from django.contrib import admin
from django.urls import path, include, re_path

from user.views import FileView
"""主路由"""
urlpatterns = [
    path('admin/', admin.site.urls),
    # user的路由
    path('api/user/', include('user.urls')),
    #图片的路由
    re_path(r'file/image/(.+?)/',FileView.as_view()),
    #首页的路由
    path('api/goods/', include('goods.urls')),
    #购物车路由
    path('api/cart/', include('cart.urls')),
    #订单模块
    path('api/order/', include('order.urls')),
]
